# include<iostream>
#include<conio.h>

using namespace std;

void show()
{
	static int count=0;
	cout << count++;

}
int main()
{

	for (int i = 0; i < 5; i++)
	{
		show();
	}
	_getch();
}